
a = "A Famous Saying: Much Ado About Nothing (2012/8)."
index_usr={}
zimu=''
print(list(a))
ind=0
for i in list(a):
    if i.isalpha(): #至少有一个字符且所有字符为字母时返回True
        zimu+=i
    else:
        index_usr[ind]=i
    ind+=1
zmpx=sorted(zimu,key=str.upper)#以字母转为大写后字符串升序排序的索引排列原字符串
print(zmpx)
print(index_usr)
# f=''
# for k,v in index_usr.items():
#     zmpx.insert(k, v)
# print(str(zmpx))


# a = input()
# zimu=''
# for i in a:
#     if i.isalpha(): #至少有一个字符且所有字符为字母时返回True
#         zimu+=i
# zmpx=sorted(zimu,key=str.upper)#以字母转为大写后字符串升序排序的索引排列原字符串
# f=''
# idx=0
# for i in range(len(a)):
#     if a[i].isalpha():
#         f+=zmpx[idx]
#         idx+=1
#     else:
#         f+=a[i]
# print(f)